package com.laolang.shop.common.core.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
// @ApiModel(value = "接口返回的分页结构")
@Accessors(chain = true)
@Data
public class Page<T> {

    // @ApiModelProperty(value = "当前页")
    private int pageNum;

    // @ApiModelProperty(value = "每页的数量")
    private int pageSize;

    // @ApiModelProperty(value = "当前页的数量")
    private int size;

    // @ApiModelProperty(value = "总记录数")
    private long total;

    // @ApiModelProperty(value = "总页数")
    private int pages;

    // @ApiModelProperty(value = "结果集")
    private List<T> list;
}
